<?php
$this->breadcrumbs=array(
//	'Blogs'=>array('index'),
//	$model->title,
);

$this->menu=array(
	array('label'=>'List Blog', 'url'=>array('index')),
	array('label'=>'Create Blog', 'url'=>array('create')),
	array('label'=>'Update Blog', 'url'=>array('update', 'id'=>$model->id)),
	array('label'=>'Delete Blog', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Manage Blog', 'url'=>array('admin')),
);
?>
<div id="blog_list">
<div id="yw0" class="list-view">
<div class="items">
<div class="view">
    <div class="left leftright">
        <h2><?php echo $model->title; ?></h2>
    </div>
    <div class="right leftright body">
        <div class="blog_header">
            <div class="left">
            <h3><?php echo Tool::ago($model->create_time); ?></h3>
            </div>
            <div class="artist_name">
                <?php if($model->categoryName != null): ?>
                <h3>
            <?php echo CHtml::link($model->categoryName,Yii::app()->createUrl('/blogCategory/view',array('id'=>$model->category))); ?>
                </h3>
                <?php endif; ?>
            </div>
            <div class="clear"></div>
        </div>
        <div class="blog_body">
        <?php 
        if($model->thumbnail != null){
            $thumb_array = explode(",", $model->thumbnail);
            foreach($thumb_array as $value){
                echo CHtml::image(Yii::app()->baseUrl.'/'.$value,$model->title,array('class'=>'blog_thumbnail'))."<br/>";
            }
        }
        echo '<div class="blog_text">';
        echo nl2br($model->discription);
        echo '</div>';
        ?>
        </div>
    </div>
    <div class="clear"></div>
</div>
</div>
</div>
</div>